package edu.xlh.travel.dao;

import edu.xlh.travel.pojo.Admin;
import edu.xlh.travel.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface AdminDao extends JpaRepository<User,String>, JpaSpecificationExecutor<User> {
    Admin findByMobile(String login);

    Admin findByEmail(String login);

    List<Admin> findByName(String login);
}
